{% extends ':layouts:information.html.twig' %}

{% block crumb %}
    {{ render(controller( 'AppBundle:Default:crumb',{'labels':['个人中心','用户信息']})) }}
{% endblock %}

{% block content %}
    <div class="row">
        <div class="col-md-9">
            <table class="table table-striped table-bordered">
                <tbody>
                <tr>
                    <th>Id</th>
                    <td>{{ user.id }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Username {% endtrans %}</th>
                    <td>{{ user.username }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Password {% endtrans %}</th>
                    <td>{{ user.password }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Name {% endtrans %}</th>
                    <td>{{ user.name }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Mobile {% endtrans %}</th>
                    <td>{{ user.mobile }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Phone {% endtrans %}</th>
                    <td>{{ user.phone }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Email {% endtrans %}</th>
                    <td>{{ user.email }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Sex {% endtrans %}</th>
                    <td>{{ user.sex }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Duty {% endtrans %}</th>
                    <td>{{ user.duty }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Power {% endtrans %}</th>
                    <td>{% if user.power %}Yes{% else %}No{% endif %}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Departid {% endtrans %}</th>
                    <td>{{ user.departId }}</td>
                </tr>
                <tr>
                    <th>Companyid</th>
                    <td>{{ user.companyId }}</td>
                </tr>
                <tr>
                    <th>Roleid</th>
                    <td>{{ user.roleId }}</td>
                </tr>
                <tr>
                    <th>是否在职</th>
                    <td>{{ user.onJobLabel }}</td>
                </tr>
                <tr>
                    <th>在线类型</th>
                    <td>{{ user.phoneType }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %}Created at{% endtrans %}</th>
                    <td>{{ user.createdAt }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Updated at {% endtrans %}</th>
                    <td>{{ user.updatedAt }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %} Start at {% endtrans %}</th>
                    <td>{{ user.startAt }}</td>
                </tr>
                <tr>
                    <th>{% trans from 'app' %}Unit start at{% endtrans %}</th>
                    <td>{{ user.unitStartAt }}</td>
                </tr>
                </tbody>
            </table>

            <ul>
                <li>
                    <a href="{{ path('user_index') }}">Back to the list</a>
                </li>
                <li>
                    <a href="{{ path('user_edit', { 'id': user.id }) }}">Edit</a>
                </li>
                <li>
                    {{ form_start(delete_form) }}
                    <input type="submit" value="Delete">
                    {{ form_end(delete_form) }}
                </li>
            </ul>
        </div>
    </div>
{% endblock %}
